import Vue from 'vue';

const contexts = require.context('./', true, /\.vue$/);
contexts.keys().forEach((key) => {
  const component = contexts(key).default;
  if (component.name === undefined) return;
  Vue.component(component.name, component);
});
